
from sqlalchemy import Column, Integer, String, Text
from app.entity.baseModal import BaseModal
from sqlalchemy.orm import Mapped,mapped_column,declarative_base, relationship,sessionmaker

class User(BaseModal):
    __tablename__="jz_users"
    _fieldIgnore = ['password']
    username:Mapped[str]=mapped_column(String(100))
    password:Mapped[str]=mapped_column(String(255))
    nickname:Mapped[str]=mapped_column(String(100))
    gender:Mapped[int]=mapped_column(Integer())
    phone:Mapped[str]=mapped_column(String(20))
    remask:Mapped[str]=mapped_column(String(500))
    avatarUrl:Mapped[str]=mapped_column(String(1000),name="avatar_url")
    qrcode:Mapped[str]=mapped_column(Text())
    status:Mapped[str]=mapped_column(String(2))
    isSuperAdmin:Mapped[str]=mapped_column(String(2),name="is_super_admin")
